layui.use(['form','layer','laydate','table','laytpl'],function(){
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        laydate = layui.laydate,
        laytpl = layui.laytpl,
        table = layui.table;
        
        
        //数据字典列表
    var tableIns = table.render({
        elem: '#searchProductInfo',
        url : '../../json/basicData/searchProductInfo.json',
        cellMinWidth : 95,
        page : true,
        height : "full-125",
        limit : 20,
        limits : [10,15,20,25],
        cols : [[
           
            {field: 'proId', title: 'ID', align:"center"},
            {field: 'proName', title: '名称',align:"center"},
            {field: 'proType', title: '型号',align:'center'},
            {field: 'proRand', title: '等级/批次',align:'center'},
            {field: 'proUnit', title: '单位', align:'center'}, 
            {field: 'proPrice', title: '单价(元)', align:'center'},
            {field: 'proNote', title: '备注', align:'center'}
        ]]
    });
    
    
    
    
    //数据字典列表
    var tableStock = table.render({
        elem: '#searchStock',
        url : '../../json/basicData/searchStock.json',
        cellMinWidth : 95,
        page : true,
        height : "full-125",
        limit : 20,
        limits : [10,15,20,25],
        cols : [[        
            {field: 'proId', title: '序号', align:"center"},
            {field: 'proName', title: '产品',align:"center"},
            {field: 'proStock', title: '仓库',align:'center'},
            {field: 'proLoc', title: '货位',  align:'center'},
            {field: 'proNum', title: '件数', align:'center'}, 
            {field: 'proNote', title: '备注', align:'center'}
        ]]
    });


  
});